package com.changgou.comment.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:Comment构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="tb_comment")
public class Comment implements Serializable{

	@Id
    @Column(name = "id")
	private Long id;//评价id

    @Column(name = "type")
	private String type;//评价类型 1-一级评价; 2-二级评价(评价的评价); 3-追加评价;

    @Column(name = "comment")
	private String comment;//评价内容

    @Column(name = "comment_time")
	private Date commentTime;//评价时间

    @Column(name = "images")
	private String images;//商品评价图片列表

    @Column(name = "level")
	private String level;//商品评价级别 1-好评; 2-中评; 3-差评

    @Column(name = "parent_id")
	private Long parentId;//一级评价的id,若为一级评价则此id为0

    @Column(name = "like_num")
	private Integer likeNum;//点赞数

    @Column(name = "spu_id")
	private Long spuId;//spu_id

    @Column(name = "sku_id")
	private Long skuId;//sku_id

    @Column(name = "order_id")
	private Long orderId;//订单id

    @Column(name = "username")
	private String username;//用户名



	//get方法
	public Long getId() {
		return id;
	}

	//set方法
	public void setId(Long id) {
		this.id = id;
	}
	//get方法
	public String getType() {
		return type;
	}

	//set方法
	public void setType(String type) {
		this.type = type;
	}
	//get方法
	public String getComment() {
		return comment;
	}

	//set方法
	public void setComment(String comment) {
		this.comment = comment;
	}
	//get方法
	public Date getCommentTime() {
		return commentTime;
	}

	//set方法
	public void setCommentTime(Date commentTime) {
		this.commentTime = commentTime;
	}
	//get方法
	public String getImages() {
		return images;
	}

	//set方法
	public void setImages(String images) {
		this.images = images;
	}
	//get方法
	public String getLevel() {
		return level;
	}

	//set方法
	public void setLevel(String level) {
		this.level = level;
	}
	//get方法
	public Long getParentId() {
		return parentId;
	}

	//set方法
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	//get方法
	public Integer getLikeNum() {
		return likeNum;
	}

	//set方法
	public void setLikeNum(Integer likeNum) {
		this.likeNum = likeNum;
	}
	//get方法
	public Long getSpuId() {
		return spuId;
	}

	//set方法
	public void setSpuId(Long spuId) {
		this.spuId = spuId;
	}
	//get方法
	public Long getSkuId() {
		return skuId;
	}

	//set方法
	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}
	//get方法
	public Long getOrderId() {
		return orderId;
	}

	//set方法
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	//get方法
	public String getUsername() {
		return username;
	}

	//set方法
	public void setUsername(String username) {
		this.username = username;
	}


}
